﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/Site.master" AutoEventWireup="true" Inherits="Reservar" Codebehind="Reservar.aspx.cs" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 177px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        <p id="titulo"> Reservas </p>
    </h2>

    <div class="contTabla">
        <table>
        <tr>
            <td class="style1">
                <asp:Label ID="Label1" runat="server" Text="Ingrese la fecha:"></asp:Label>
            </td>
            <td>
                <asp:Calendar ID="calFecha" runat="server" SelectedDayStyle-Wrap="True" 
                    BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" 
                    Font-Size="9pt" ForeColor="Black" Height="104px" NextPrevFormat="FullMonth" 
                    Width="323px"
                    onselectionchanged="calFecha_SelectionChanged1" oninit="calFecha_Init">
                    <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
                    <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                        VerticalAlign="Bottom" />
                    <OtherMonthDayStyle ForeColor="#999999" />
<SelectedDayStyle Wrap="True" BackColor="#333399" ForeColor="White"></SelectedDayStyle>
                    <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" 
                        Font-Bold="True" Font-Size="12pt" ForeColor="#333399" />
                    <TodayDayStyle BackColor="#CCCCCC" />
                </asp:Calendar>                        
            </td>
        </tr>

        <tr>
            <td class="style1">
                <asp:Label ID="Label3" runat="server" Text="Ingrese la hora:"></asp:Label>               
            </td>
            <td>       
                <asp:DropDownList ID="ddlHora" runat="server">
                        <asp:ListItem Text="12:00" Value="12:00" />
                        <asp:ListItem Text="12:30" Value="12:30" />
                        <asp:ListItem Text="13:00" Value="13:00" />
                        <asp:ListItem Text="13:30" Value="13:30" />
                        <asp:ListItem Text="14:00" Value="14:00" />
                        <asp:ListItem Text="14:30" Value="14:30" />
                        <asp:ListItem Text="15:00" Value="15:00" />
                        <asp:ListItem Text="20:00" Value="20:00" />
                        <asp:ListItem Text="20:30" Value="20:30" />
                        <asp:ListItem Text="21:00" Value="21:00" />
                        <asp:ListItem Text="21:30" Value="21:30" />
                        <asp:ListItem Text="22:00" Value="22:00" />
                        <asp:ListItem Text="22:30" Value="22:30" />
                        <asp:ListItem Text="23:00" Value="23:00" />
                </asp:DropDownList>                        
            </td>
        </tr>
                 

        <tr>
            <td class="style1">
                <asp:Label ID="Label2" runat="server" Text="Ingrese la cantidad de comensales:"></asp:Label>
            </td>
            <td>                
                
                
                <asp:DropDownList ID="ddlComenzales" runat="server" DataSourceID="DataSourceComenzales" 
                    DataTextField="Nro_Comensales" DataValueField="Id_Mesa"  
                    AutoPostBack="True">
                </asp:DropDownList>               
                <asp:SqlDataSource ID="DataSourceComenzales" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:BarCafeConnectionString %>" 
                    ProviderName="<%$ ConnectionStrings:BarCafeConnectionString.ProviderName %>" >
                 </asp:SqlDataSource>
            </td>
         </tr>


        </table>

         <br />
         <br />
            <asp:Button ID="btnAceptaComandar" runat="server" 
                Text="Aceptar" onclick="btnAceptaComandar_Click"  ValidationGroup="LoginUserValidationGroup" />
            <asp:Button ID="btnCancelarComanda" runat="server" Text="Cancelar" 
                onclick="btnCancelarComanda_Click" />
        </div>
        <asp:ValidationSummary ID="SummaryLoginUserValidationGroup" runat="server" ValidationGroup="LoginUserValidationGroup" />
    <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>